#ifndef TASKQUEUE_H
#define TASKQUEUE_H

#include "virDir.h"
#include <myHeader.h>
/* typedef int dataType; */


typedef struct usrInfo_s{
    int netFd;
    int cmdType;
    bool flag;
    char usrName[32];
    char command[128];
    char cachePath[128];
    char truthPath[128];
    Stack_t virtulDirectory;
}usrInfo_t;

typedef struct QueueNode_s{
    struct QueueNode_s *pNext;
    usrInfo_t usrInfo;
}node_t;

typedef struct taskQueue_s{
    node_t *pFront;
    node_t *pRear;
    int queueSize;
}taskQueue_t;

int initQueue(taskQueue_t *pQueue);

int enQueue(taskQueue_t *pQueue,usrInfo_t usrInfo);

int deQueue(taskQueue_t *pQueue);

int isQueueEmpty(taskQueue_t *pQueue);

#endif
